<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ThreeDChart.setViewAngle</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="ThreeDChart.htm">ThreeDChart</a>.<wbr>setViewAngle</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setViewAngle(double elevation [, double rotation [, double twist ]])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the 3D view angles.<br><br>
ChartDirector uses elevation, rotation and twist angles to specify the 3D view angles.<br><br>
To explain the meaning of the angles, imagine the object being viewed is put at the center of a hollow sphere, and a camera (the view point) is put at the surface of the sphere, directed inwards to the center to look at the object.<br><br>
The elevation angle refers to the "latitude" of the camera. An elevation angle of 0 degrees means the camera is at the "equator" pointing to the object from the side. An elevation angle of 90 degrees means the camera is at the "north pole" pointing down to the object. An angle elevation of -90 degrees means the camera is at the "south pole", pointing up to the object.<br><br>
The rotation angle refers to the "longitude" of the camera. If the elevation is 0 degrees, and the rotation angle varies from 0 to 360 degrees, the camera will move around the "equator" in the easterly direction (counter-clockwise when viewed from the north pole).<br><br>
The twist angle is for rotating the camera itself while still pointing to the object. For example, a twist angle of 90 degrees means you are holder the camera "vertically" instead of "horizontally". The rotation is clockwise from the view point of the person holding the camera.<br><br>
Note that from the view point of the camera, the object will appear to be rotating in the opposite direction. For example, as the rotation angle rotates the camera counter-clockwise along the "equator", the object will appear to be rotating clockwise on the screen.<br><br>
<div class="greyblock">
<b>Note:</b> The twist angle is not supported in the current version of ChartDirector. It should always be 0, and should be considered as a reserved argument for future use.
</div>
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>elevation</td><td>(Mandatory)</td><td>The elevation angle in degrees.</td></tr><tr><td>rotation</td><td>0</td><td>The rotation angle in degrees.</td></tr><tr><td>twist</td><td>0</td><td>The twist angle in degrees.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
